package com.lezhi.socialgram.model.sys;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.lezhi.socialgram.annotation.Table;
import com.lezhi.socialgram.util.Param;

import javax.validation.constraints.NotNull;

/**
 * Created by daizhen on 2017/4/5.
 */
@Table(prefix = Param.T_USER_PRIVACY_TABLE_PREFIX)
public class UserPrivacy {

    private String table;

    @NotNull(message = "用户id不能为null")
    private Long userId;

    private Integer forbidStrangeLetter = 0;

    private Integer forbidStrangeComment = 0;

    private Integer forbidDownloadMoment = 0;

    public UserPrivacy() {
    }

    public UserPrivacy(String table, Long userId) {
        this.table = table;
        this.userId = userId;
    }

    @JsonIgnore
    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getForbidStrangeLetter() {
        return forbidStrangeLetter;
    }

    public void setForbidStrangeLetter(Integer forbidStrangeLetter) {
        this.forbidStrangeLetter = forbidStrangeLetter;
    }

    public Integer getForbidStrangeComment() {
        return forbidStrangeComment;
    }

    public void setForbidStrangeComment(Integer forbidStrangeComment) {
        this.forbidStrangeComment = forbidStrangeComment;
    }

    public Integer getForbidDownloadMoment() {
        return forbidDownloadMoment;
    }

    public void setForbidDownloadMoment(Integer forbidDownloadMoment) {
        this.forbidDownloadMoment = forbidDownloadMoment;
    }
}
